import _defineProperty from 'babel-runtime/helpers/defineProperty';
import './index.less';

import PropTypes from 'ant-design-vue/es/_util/vue-types';
import { layoutContentWidth } from '../../utils/util';

var GridContent = {
  name: 'GridContent',
  functional: true,
  props: {
    children: PropTypes.any,
    contentWidth: PropTypes.oneOf(['Fluid', 'Fixed']).def('Fluid')
  },
  render: function render(h, content) {
    var _classNames;

    var contentWidth = content.props.contentWidth;

    var children = content.children;

    var propsContentWidth = layoutContentWidth(contentWidth);
    var classNames = (_classNames = {}, _defineProperty(_classNames, 'ant-pro-grid-content', true), _defineProperty(_classNames, 'wide', propsContentWidth), _classNames);

    return h(
      'div',
      { 'class': classNames },
      [children]
    );
  }
};

export default GridContent;